#ifndef _LOG_H_
#define _LOG_H_
#include <iostream>
#include <time.h>
#include <string>
#define DEBUG 0
#define NOTICE 1
#define WARNING 2
#define ERROR 3

const std::string msg[] = {
    "DEBUG",
    "NOTICE",
    "WARNING",
    "ERROR"
};

std::ostream& log(std::string message,int level)
{
    std::cout << " | " << (unsigned)time(NULL) << " | " << msg[level] << " | " << message;
    return std::cout;
}

#endif